<!--
  - Copyright (c) 2018.
  - 北京九思金信科技有限公司对该文件内容保留所有权利。
  - 未经许可，不得私自拷贝、传播、发布、引用该文件内容，违者将被追究法律责任。
  -->
  <template>
  <div class="Home_taskItem_box">
    <div class="taskItem_title">
      <div class="taskItem_title_return" @click="ReturnsHistory">
        <img src="@/assets/img/Back@3x.png" alt>
        <span>任务中心</span>
      </div>
      <p>{{title}}</p>
    </div>
    <scroll class="taskItem_item_box">
      <div class="taskItem_item">
        <div class="mission_info" v-for="item in taskLinst" :key="item.id">
          <div class="mission_info_title">
            <img :src="item.img" alt>
            <span>项目审批</span>
            <!-- <em>{{item.time}}</em> -->
            <p>{{item.name}}</p>
          </div>
          <div class="mission_info_center">
            <!-- <p>了解详情</p>
            <img src="@/assets/img/More2@3x.png" alt>-->
          </div>
        </div>
      </div>
    </scroll>
    <div class="taskItem_item_idea_box">
      <input type="text" placeholder="输入审批意见……">
      <div class="button_box">
        <button>同意</button>
        <button>驳回</button>
      </div>
    </div>
  </div>
</template>
  
<script>
import Scroll from "@/components/JoysScroll/JoysScroll";
export default {
  name: "taskInfo",
  components: {
    Scroll
  },

  data() {
    return {
      title: "湖南永旺机械收款是的观点是否",
      taskLinst: [
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",

          img: require("@/assets/img/Approval2@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        },
        {
          name: "湖南永旺机械资信审批",
          time: "09:43:34",
          titleInfo: "缺乏相关材料，驳回",
          img: require("@/assets/img/Reject@3x.png")
        }
      ]
    };
  },
  methods: {
    ReturnsHistory() {
      this.$router.goBack();
    }
  }
};
</script>
  
  <style scoped lang="less">
.Home_taskItem_box {
  background: #fbf9fe;
  position: fixed;
  top: 0rem;
  bottom: 0.1rem;
  width: 100%;
  height: 100%;
  z-index: 500;
  // overflow: hidden;
  // margin-bottom: 0.83rem;
  .taskItem_title {
    width: 100%;
    height: 0.44rem;
    text-align: center;
    line-height: 0.44rem;
    z-index: 501;
    position: fixed;
    background: #ffffff;
    box-shadow: inset 0 -1px 0 0 rgba(207, 207, 207, 0.2);
    .taskItem_title_return {
      float: left;
      height: 0.44rem;
      line-height: 0.44rem;
      img {
        // width: 0.15rem;
        float: left;
        height: 0.205rem;
        padding-left: 0.085rem;
        vertical-align: baseline;
        margin-top: 0.12rem;
      }
      span {
        float: left;
        font-family: Regular;
        font-size: 0.17rem;
        color: #3e3e3e;
        letter-spacing: -0.41px;
        // line-height: 0.44px;
        margin-left: 0.04rem;
        overflow: hidden;
        height: 0.44rem;
        // display: inline-block;
      }
    }
    p {
      font-family: Semibold;
      font-size: 0.17rem;
      color: #3e3e3e;
      letter-spacing: -0.41px;
      text-align: center;
      height: 0.44rem;
      line-height: 0.44rem;
      margin-left: 1.1rem;
      margin-right: 1.1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .taskItem_item_box {
    height: 100%;
    // margin-top: 0.1rem;
    margin-top: 0.44rem;
    .taskItem_item {
      .mission_info {
        background: #ffffff;
        box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.09);
        border-radius: 0.04rem;
        margin: 0 0.16rem 0.1rem 0.16rem;
        // margin-bottom: 0.1rem;
        padding-bottom: 0.15rem;
        .mission_info_title {
          padding-left: 0.08rem;
          padding-right: 0.16rem;
          margin: 0 0.08rem;
          border-bottom: 1px #eeeeee solid;
          padding-top: 0.2rem;
          padding-bottom: 0.12rem;
          img {
            float: left;
            background: #d8d8d8;
            width: 0.2rem;
            height: 0.2rem;
            // margin-left: 0.16rem;
            border-radius: 50%;
          }
          span {
            margin-left: 0.14rem;
            float: left;
            font-family: Mediums;
            font-size: 0.15rem;
            color: #202f1f;
            letter-spacing: -0.41px;
            line-height: 0.15rem;
          }
          em {
            float: right;
            text-align: right;
            font-family: Regular;
            font-size: 0.13rem;
            color: #adadad;
            letter-spacing: -0.36px;
            text-align: right;
          }
          p {
            clear: both;
            margin-top: 0.08rem;
            padding-left: 0.34rem;
            font-family: Regular;
            font-size: 0.13rem;
            color: #636363;
            letter-spacing: -0.36px;
            line-height: 0.13rem;
          }
        }
        .mission_info_center {
          min-height: 1rem;
        }
      }
    }
    .taskItem_item::before {
      content: "";
      display: block;
      height: 0.1rem;
      width: 100%;
    }
    .taskItem_item::after {
      content: "";
      display: block;
      height: 1.2rem;
      width: 100%;
    }
  }
  .taskItem_item_idea_box {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 0.65rem;
    padding-top: 0.18rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 0 #f9fcfe;
    input {
      width: 50%;
      background: #ffffff;
      border: 1px solid #eaeaea;
      border-radius: 2px;
      margin-left: 0.16rem;
      height: 0.32rem;
      box-sizing: border-box;
      float: left;
    }

    input::placeholder {
      font-family: Regular;
      font-size: 0.12rem;
      color: #d7d7d7;
      letter-spacing: 0;
      line-height: 0.12rem;
      transform: translate(8px, -6px);
    }
    .button_box {
      float: right;
      button {
        float: right;
        width: 0.48rem;
        height: 0.24rem;
        border-radius: 0.12rem;
        font-family: Mediums;
        font-size: 0.14rem;
        letter-spacing: 0;
      }

      //   button:nth-child(1) {
      //     color: #b3b3b3;
      //     background: #ffffff;
      //     border: 1px solid #f2f2f2;
      //     margin-right: 0.2rem;
      //   }
      button:nth-child(1) {
        background: #f15a4a;
        color: #fff;
        margin-right: 0.24rem;
        margin-left: 0.2rem;
      }
    }
  }
}
</style>
  